$(function(){
	
	//header
	$('header').css({"width":$('#all').innerWidth()});
	
	//ContentRight
	var rightDivHeight = $(window).height()-$('header').height()-50;
	$('#contentRight').css({"height":rightDivHeight,
							"top":$('header').height()});
							
	//#ContentLeft
	$('#contentLeft').css({"top":$('header').height()});

	
	//img
	$("#screenImg").attr("width",$("#contentLeft").width());
	
	$("#screenImg").elevateZoom({
	  zoomType	: "lens",
	  
	  lensSize    : 200,
	  scrollZoom : true
	});
	
	
	//||||||||||||||||||||||||| H2 IMAGES |||||||||||||||||||
	var switchImage = function(nomImage){
		$("#screenImg").attr("src","img/"+nomImage+".jpg");
		$("#screenImg").elevateZoom({
		  zoomType	: "lens",
		  
		  lensSize    : 200,
		  scrollZoom : true
		});
	};
	
	$('#h2Introduction').click(function (){	switchImage("h2Introduction"); });
	
	$('#h2Signup').click(function (){	switchImage("h2Signup"); });
	
	$('#h2GetConnected').click(function (){	switchImage("h2GetConnected"); });
	
	$('#h2SetupAccount').click(function (){	switchImage("h2SetupAccount"); });
	
	$('#h2Work').click(function (){	switchImage("h2Work"); });
	
	$('#h2Hire').click(function (){	switchImage("h2Hire"); });
															
	
	$("strong").each(function(){
		$(this).hover(
		// IN
		function(){
			switchImage($(this).attr("id"));
		},
		// OUT
		function(){
			switchImage($(this).attr("class"));
		});
	});
});